package com.owen.dao;

import com.owen.entity.Phone;
import org.springframework.stereotype.Component;

import java.util.Arrays;
import java.util.List;

@Component
public class PhoneDao {

    /**
     * 模拟数据库查询数据
     * @return
     */
    public List<Phone> findAllPhone() {
        //模拟数据
        Phone phone1 = new Phone(1, "18683088711", "重庆", "旅游云", "备注信息");
        Phone phone2 = new Phone(2, "18683088712", "重庆", "旅游云", "备注信息");
        Phone phone3 = new Phone(3, "18683088713", "重庆", "旅游云", "备注信息");
        Phone phone4 = new Phone(4, "18683088714", "重庆", "旅游云", "备注信息");
        Phone phone5 = new Phone(5, "18683088715", "重庆", "旅游云", "备注信息");
        Phone phone6 = new Phone(6, "18683088716", "重庆", "旅游云", "备注信息");
        Phone phone7 = new Phone(7, "18683088717", "重庆", "旅游云", "备注信息");
        Phone phone8 = new Phone(8, "18683088718", "重庆", "旅游云", "备注信息");
        Phone phone9 = new Phone(9, "18683088719", "重庆", "旅游云", "备注信息");
        Phone phone10 = new Phone(10, "18683088710", "重庆", "旅游云", "备注信息");
        Phone phone11 = new Phone(11, "18683088711", "重庆", "旅游云", "备注信息");
        Phone phone12 = new Phone(112, "18683088712", "重庆", "旅游云", "备注信息");
        return Arrays.asList(phone1, phone2, phone3, phone4, phone5, phone6, phone7, phone8, phone9, phone10, phone11, phone12);
    }

}
